package com.example.administrator.yuejian35.Me;

import com.example.administrator.yuejian35.Home.bean.Activity;
import com.example.administrator.yuejian35.Home.bean.Result;
import com.example.administrator.yuejian35.Me.bean.UserInfo;

import okhttp3.MultipartBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.Query;

/**
 * Created by HP on 2017/9/17.
 */

public interface MeServer {
    //编写接口

    @GET("User/UserInfo") //当前用户信息
    Call<UserInfo> userinfo(
            @Query("uid") String uid
    );

    @Multipart
    @POST("User/EditUser")//修改个人信息
    Call<Result> editusers(
            @Query("uid") String uid,
            @Query("uname") String uname,
            @Query("intro") String intro,
            @Query("sex") String sex,
            @Query("tel") String tel,
            @Query("address") String address,
            @Part MultipartBody.Part file
    );


    @GET("User/EditUser")//修改个人信息
    Call<Result> edituser(
            @Query("uid") String uid,
            @Query("uname") String uname,
            @Query("intro") String intro,
            @Query("sex") String sex,
            @Query("tel") String tel,
            @Query("address") String address

    );

}
